﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;

namespace SvnToTfs
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
      private void Application_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
      {
        if (e != null && e.Exception != null)
        {
          MessageBox.Show(e.Exception.Message, SvnToTfsResources.UnexpecterError);

          SvnToTfs.MainWindow.AppendInLogFile(e.Exception.ToString());

          e.Handled = true;
        }
      }
    }
}
